/*
 * Write.h
 *
 *  Created on: 03/08/2011
 *      Author: jairo
 */

#ifndef __BILBAO_PROTOCOL_SERIAL_WRITE_CLASS_H__
#define __BILBAO_PROTOCOL_SERIAL_WRITE_CLASS_H__

#include "bilbao/protocol/serial/SincronyzedQueue.h"
#include "bilbao/util/SerialPort.h"
#include "bilbao/lang/Thread.h"

namespace bilbao
{
	namespace protocol
	{
		namespace serial
		{
			class Write:
					public lang::Thread
			{
			public:
				Write();
				Write(SincronyzedQueue*, util::SerialPort*);
				virtual ~Write(void);
				void run( void );
			private:
				util::SerialPort* _serialPort;
				SincronyzedQueue* _filaRespostas;
			};
		} // namespace serial
	} // namespace protocol
} // namespace bilbao

#endif // __BILBAO_PROTOCOL_SERIAL_WRITE_CLASS_H__
